<?php 
$gid =  $_POST['pathD'];
echo $gid;
print_r( $_FILES );
$item = array ( $_FILES['upload']['name'] );
?>


<form action="" method="post" enctype="multipart/form-data">
<table cellpadding="10">
<?php foreach ( $item as $i ): ?>

	<tr>
        <td>
        	<input type="checkbox" value="  "> <?=$i?>;
        </td>	
	</tr>
	<?php 
	endforeach;
	?>
        
    <tr>
        <td colspan="2">
        
        <div class="fieldset flash" id="fsUploadProgress1">
                            <span class="legend">Загрузка фотографий</span>
                        </div>
                        
                        
                        <div style="padding-left: 5px;">
        <span id="spanButtonPlaceholder1"></span>
        <input id="btnCancel1" type="button" value="Отмена загрузки" onclick="cancelQueue(upload1);" disabled="disabled" style="margin-left: 2px; height: 22px; font-size: 8pt;" />
        <br />
        </div>
                        
        
        
        </td>   
    </tr>  
    
    
    <tr>
        <td colspan="2">
         &nbsp;
        </td>
    </tr>    
    
    <tr>
        <td colspan="2">
           <input type="submit"  value="Сохранить"/>
        </td>
    </tr>                            

</table>
</form>

<script>
function CheckPurpose()
{
  	if ($('#ppckbox').is(':checked'))
    {
    	$(".purpose").fadeIn();
    }
    else
    {
    	$(".purpose").fadeOut();
    }
}

$(document).ready(CheckPurpose);
$(document).ready(uploadComplete);


</script>